from pydantic import BaseModel
from typing import Optional


class taskRequest(BaseModel):
    title: str
    description: Optional[str] = None
    priority: str
    parent_id: Optional[int] = None


class updateTaskRequest(BaseModel):
    title: str
    description:  Optional[str] = None
    priority: str
    status: str
